def wata(sentence):

    words = sentence.split()
    words.reverse()
    reversed_sentence = ' '.join(words)
    
    return reversed_sentence

sentence = "wata eat tart"
result = wata(sentence)
print(result)